﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <%--    <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>--%>
    <div>
    <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False" DataKeyNames="id" DataSourceID="SqlDataSource2" BackColor="White" BorderColor="#3366CC" BorderStyle="None" BorderWidth="1px" CellPadding="4" OnSelectedIndexChanged="GridView1_SelectedIndexChanged" Width="1593px">
        <Columns>
            <asp:CommandField ShowSelectButton="True"  SelectText="订票"/>
            <asp:BoundField DataField="id" HeaderText="id" InsertVisible="False" ReadOnly="True" SortExpression="id" />
            <asp:BoundField DataField="fly_name" HeaderText="航班号" SortExpression="fly_name" />
            <asp:BoundField DataField="type" HeaderText="机型" SortExpression="type" />
            <asp:BoundField DataField="takeoff_time" HeaderText="起飞时间" SortExpression="takeoff_time"  DataFormatString="{0:yyyy/MM/dd}"/>
            <asp:BoundField DataField="land_time" HeaderText="降落时间" SortExpression="land_time" DataFormatString="{0:yyyy/MM/dd}"/>
            <asp:BoundField DataField="start_place" HeaderText="始发地" SortExpression="start_place" />
            <asp:BoundField DataField="end_place" HeaderText="目的地" SortExpression="end_place" />
            <asp:BoundField DataField="economy_tickect" HeaderText="剩余票数" SortExpression="economy_tickect" />
            <asp:BoundField DataField="price" HeaderText="单价" SortExpression="price" />
        </Columns>
        <FooterStyle BackColor="#99CCCC" ForeColor="#003399" />
        <HeaderStyle BackColor="#003399" Font-Bold="True" ForeColor="#CCCCFF" />
        <PagerStyle BackColor="#99CCCC" ForeColor="#003399" HorizontalAlign="Left" />
        <RowStyle BackColor="White" ForeColor="#003399" />
        <SelectedRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
        <SortedAscendingCellStyle BackColor="#EDF6F6" />
        <SortedAscendingHeaderStyle BackColor="#0D4AC4" />
        <SortedDescendingCellStyle BackColor="#D6DFDF" />
        <SortedDescendingHeaderStyle BackColor="#002876" />
    </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:crmConnectionString %>" SelectCommand="SELECT * FROM [flight]"></asp:SqlDataSource>
  </div>
   <%-- </ContentTemplate>
        </asp:UpdatePanel>--%>
</asp:Content>

